package 设计模式.FactoryMethod;

import 设计模式.SimpleFactory.Computer;

public class MethodFactory {
    public static void main(String[] args) {
        DesktopFactory desktopFactory = new DesktopFactory();
        Computer desktop = desktopFactory.makeComputer();
        LaptopFactory laptopFactory = new LaptopFactory();
        Computer laptop = laptopFactory.makeComputer();
        System.out.println(desktop == laptop);
    }
}
